package com.yun.controller;

import com.yun.entity.StatisticsScoreTarget;
import com.yun.service.SeparateManagementSystemService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (StatisticsScoreTarget)表控制层
 *
 * @author makejava
 * @since 2021-10-27 16:18:36
 */
@RestController
@RequestMapping("SeparateManagementSystemController")
public class SeparateManagementSystemController {
    /**
     * 服务对象
     */
    @Resource
    private SeparateManagementSystemService separateManagementSystemService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public StatisticsScoreTarget selectOne(Integer id) {
        return this.separateManagementSystemService.queryById(id);
    }

}